-- GENERATED SPELL FOR [Torn Screamer] --


function spell0_8540(pUnit, Event) --@Banshee Curse,n/a--
pUnit:FullCastSpellOnTarget(5884,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8540', 14000, 1)
end

function Sorts_8540(pUnit, Event)
local choix_sorts_8540 = math.random(0, 0)
if choix_sorts_8540 == 0 then
pUnit:RegisterEvent('spell0_8540', 1, 1)
end
end

function mob8540_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8540', math.random(1500, 3000), 1)
end

function mob8540_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8540_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8540_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8540, 1, 'mob8540_Action')
RegisterUnitEvent(8540, 2, 'mob8540_Leave')
RegisterUnitEvent(8540, 3, 'mob8540_Kill')
RegisterUnitEvent(8540, 4, 'mob8540_Die')
